<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-1.11.0.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		/* //DOM向右移动
		$("#b").click(function(){
			$("#p").animate({left:'200px'},'slow');
		}) */
		//动画效果向右移动
		$("#b").click(function(){
			$("#p").animate({
				left:'200px',
				opacity:0.5,
				height:'150px',
				width:'150px'
				},'slow');
		});
	});
</script>
</head>
<body>
<!-- <input type="button" id="b" value="向右移动"/> -->
<input type="button" id="b" value="动画效果向右移动"/>
<div id="p" style="width:100px; height:100px; background-color:red; margin:10px; position:absolute;"></div>
</body>
</html>